/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bayu.services.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author joep
 */
@Entity
@Table(name = "graph_sm_60")
@NamedQueries({@NamedQuery(name = "GraphSm60.findAll", query = "SELECT g FROM GraphSm60 g"), @NamedQuery(name = "GraphSm60.findById", query = "SELECT g FROM GraphSm60 g WHERE g.id = :id"), @NamedQuery(name = "GraphSm60.findByActualmould", query = "SELECT g FROM GraphSm60 g WHERE g.actualmould = :actualmould"), @NamedQuery(name = "GraphSm60.findByActualsand", query = "SELECT g FROM GraphSm60 g WHERE g.actualsand = :actualsand"), @NamedQuery(name = "GraphSm60.findByBatasmax", query = "SELECT g FROM GraphSm60 g WHERE g.batasmax = :batasmax"), @NamedQuery(name = "GraphSm60.findByFrekwensi", query = "SELECT g FROM GraphSm60 g WHERE g.frekwensi = :frekwensi"), @NamedQuery(name = "GraphSm60.findByDate", query = "SELECT g FROM GraphSm60 g WHERE g.date = :date"), @NamedQuery(name = "GraphSm60.findByKeterangan", query = "SELECT g FROM GraphSm60 g WHERE g.keterangan = :keterangan")})
public class GraphSm60 implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Long id;
    @Basic(optional = false)
    @Column(name = "actualmould")
    private double actualmould;
    @Basic(optional = false)
    @Column(name = "actualsand")
    private double actualsand;
    @Basic(optional = false)
    @Column(name = "batasmax")
    private double batasmax;
    @Basic(optional = false)
    @Column(name = "frekwensi")
    private double frekwensi;
    @Basic()
    @Column(name = "date")
    @Temporal(TemporalType.DATE)
    private Date date;
    @Basic()
    @Column(name = "keterangan")
    private String keterangan;

    public GraphSm60() {
    }

    public GraphSm60(Long id) {
        this.id = id;
    }

    public GraphSm60(Long id, double actualmould, double actualsand, double batasmax, double frekwensi, Date date, String keterangan) {
        this.id = id;
        this.actualmould = actualmould;
        this.actualsand = actualsand;
        this.batasmax = batasmax;
        this.frekwensi = frekwensi;
        this.date = date;
        this.keterangan = keterangan;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public double getActualmould() {
        return actualmould;
    }

    public void setActualmould(double actualmould) {
        this.actualmould = actualmould;
    }

    public double getActualsand() {
        return actualsand;
    }

    public void setActualsand(double actualsand) {
        this.actualsand = actualsand;
    }

    public double getBatasmax() {
        return batasmax;
    }

    public void setBatasmax(double batasmax) {
        this.batasmax = batasmax;
    }

    public double getFrekwensi() {
        return frekwensi;
    }

    public void setFrekwensi(double frekwensi) {
        this.frekwensi = frekwensi;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getKeterangan() {
        return keterangan;
    }

    public void setKeterangan(String keterangan) {
        this.keterangan = keterangan;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof GraphSm60)) {
            return false;
        }
        GraphSm60 other = (GraphSm60) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.bayu.services.entity.GraphSm60[id=" + id + "]";
    }

}
